package com.ruoyi.order.station.operate;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

/**
 * 写入PLC物料码DB块
 */
@Data
public class DB5452 {
    //包装码
    @S7Variable(byteOffset=0, arraySize=20, type= S7Type.BYTE)
    public byte[]  ordId;

    //回写PLC 物料号
    @S7Variable(byteOffset=30, arraySize=20, type= S7Type.BYTE)
    public byte[] materialNo;

    //回写PLC 物料号
    @S7Variable(byteOffset=50, arraySize=50, type= S7Type.BYTE)
    public byte[] batchNo;

    //回写PLC 物料号
    @S7Variable(byteOffset=100, bitOffset=0, type= S7Type.WORD)
    public Integer quantity;

    //回写PLC 物料号
    @S7Variable(byteOffset=102, arraySize=20, type= S7Type.BYTE)
    public byte[] productDate;
}
